﻿
using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Profile;
using System.Data;

using Gift.DAL;
using Gift.Model;

namespace WebSite.cn
{
    public partial class content : BasePage
    {
        // Fields

        readonly DALNavigator theNavigator = new DALNavigator();
        tbNavigator oNavigator;

        public string navigaterContent = "";
        public string navigaterName = "";



        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack )
            {
                if(!string.IsNullOrEmpty(base.Request.QueryString["cid"]))
                {
                    this.BindContent();
                }
            }
        }

        private void BindContent()
        {
            oNavigator = theNavigator.GetModel(int.Parse(Request.QueryString["cid"]));
            if (oNavigator != null)
            {
                this.navigaterName = oNavigator.navigatorName;
                this.navigaterContent = oNavigator.navigatorContent;

            }
   
        }

  

    }
}